<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!--   唯一一个双向数据绑定指令 -->

        <input type="text"   v-model='msg'>

        <h1>  {{msg}}</h1>
     
    </div>
    <script src="./vue.js"></script>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                msg:'张三'
            },
            methods: {}
        });
    </script>
</body>

</html>